CC=g++
CXXFLAGS= -g -std=c++0x -fPIC -pedantic -Wall -DBOOST_ALL_DYN_LINK -D_GLIBCXX_DEBUG
BOOST_DIR= ~/boost/boost_1_52_0
BOOST_LIB_DIR= ${BOOST_DIR}/libs
LIBS =  -lm 
LIBDIR = -L${BOOST_LIB_DIR}
INCLUDE_DIR = -I ${BOOST_DIR}

EXE_SOURCES_CPP= dnm.cpp
EXE_OBJECTS=$(EXE_SOURCES_CPP:.cpp=.o)

UTIL_SOURCES_CPP= NetworkUtils.cpp PingStats.cpp
UTIL_OBJECTS= $(UTIL_SOURCES_CPP:.cpp=.o)

OBJECTS=$(UTIL_OBJECTS) $(EXE_OBJECTS)

EXECUTABLE=dnm

#STATIC_LIBRARIES= /usr/local/lib/libdum.a /usr/local/lib/libresip.a  /usr/local/lib/librutil.a
STATIC_LIBRARIES=
LDFLAGS= ${LIBDIR}  ${LIBS}
 
all: $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) -o $@ $@.o $(UTIL_OBJECTS) $(LDFLAGS) 
	
.cpp.o:
	$(CC) -c $(CXXFLAGS) $< $(INCLUDE_DIR) -o $@

clean:
	rm -f *.o ${EXECUTABLE} core *.log
	